package com.kyh.sys.entity;

import java.util.Date;

import javax.persistence.Table;

import com.kyh.annotation.Model;
import com.kyh.entity.base.BaseEntity;

/**
*/
@Table(name="sys_imgcode", catalog="imgcodeid")
public class Imgcode extends BaseEntity<Imgcode> {

	@Model(nameTable="imgcodeid")
	private Long imgcodeid; // 主键ID
	@Model(nameTable="imgcodeip")
	private String imgcodeip; // IP地址
	@Model(nameTable="imgcodevalue")
	private String imgcodevalue; // 图形验证码值
	@Model(nameTable="status")
	private Integer status; // 
	@Model(nameTable="createTime",type=Model.TYPE.DATE, format="yyyy-MM-dd HH:mm:ss")
	private Date createTime; // 
	@Model(nameTable="updateTime",type=Model.TYPE.DATE, format="yyyy-MM-dd HH:mm:ss")
	private Date updateTime; // 

	public Long getImgcodeid() {
		return imgcodeid;
	}
	public Imgcode setImgcodeid(Long imgcodeid) {
		this.imgcodeid = imgcodeid;
		return this;
	}
	public String getImgcodeip() {
		return imgcodeip;
	}
	public Imgcode setImgcodeip(String imgcodeip) {
		this.imgcodeip = imgcodeip;
		return this;
	}
	public String getImgcodevalue() {
		return imgcodevalue;
	}
	public Imgcode setImgcodevalue(String imgcodevalue) {
		this.imgcodevalue = imgcodevalue;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public Imgcode setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public Imgcode setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public Imgcode setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static Imgcode imgcode(
			String imgcodeip,
			String imgcodevalue,
			Integer status
			) {
		Imgcode entity = new Imgcode();
		entity.setImgcodeip(imgcodeip);
		entity.setImgcodevalue(imgcodevalue);
		entity.setStatus(status);
		return entity;
	}
}